package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.NursingTask;
import com.zzyl.nursing.vo.NursingTaskVo;

import java.util.List;
import java.util.Map;

public interface NursingTaskService extends IService<NursingTask> {

    /**
     * 查询护理任务列表
     * @param params 查询参数
     * @return 护理任务列表
     */
    List<NursingTask> selectNursingTaskList(Map<String, Object> params);
    /**
     * 获取护理任务详情
     * @param id 护理任务ID
     * @return 护理任务详情
     */
    NursingTaskVo getDetailById(Integer id);
    /**
     * 取消任务
     * @param taskId 护理任务ID
     * @param reason 取消原因
     */
    void cancelTask(Long taskId, String reason, String updater);
}